//Luokasta cDY peritty cSchrodinger - Schrödingerin yhtälön toteutus
//
//Joonas Koskinen
//Pro Gradu Työ
//Jyväskylän Yliopisto

#include "cSchrodinger.h"


cSchrodinger::cSchrodinger() {set_name("Schrödinger equation");}
cSchrodinger::~cSchrodinger() {}

double cSchrodinger::DE(double x, double V_x, double y, double dy) {
	//return (2.0*atomic_me/(hbar*hbar))*(V_x-get_E())*y;
        return 2.0*(V_x-get_E())*y;
    //return (V_x-get_E())*y;
}
//Returns the f(x) from y''(x) = f(x)y'(x) + g(x)y(x) + h(x) 
double cSchrodinger::f(double x, double V_x, double dy) {
	return 0;
}
//Returns the g(x) from y''(x) = f(x)y'(x) + g(x)y(x) + h(x)
double cSchrodinger::g(double x, double V_x, double y) {
	return 2.0*(V_x-get_E());
}
//Returns the h(x) from y''(x) = f(x)y'(x) + g(x)y(x) + h(x)
double cSchrodinger::h(double x) {
	return 0;
}
